package com.wdz.article_comment.mapper;

import com.wdz.article_comment.entity.ArticleComment;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 文章评论表 Mapper 接口
 * </p>
 *
 * @author 吴传逞
 * @since 2020-12-29
 */
@Mapper
public interface ArticleCommentMapper extends BaseMapper<ArticleComment> {

    List<ArticleComment> getHasReplysComments(@Param("articleId")String articleId,@Param("pageNo")Integer pageNo,@Param("pageSize")Integer pageSize);

    ArticleComment getArticleCommentById(@Param("id")String id);

    List<ArticleComment> getHasReplysComments2(@Param("articleId")String articleId,@Param("pageNo")Integer pageNo,@Param("pageSize")Integer pageSize);

    List<ArticleComment> getHasReplysComments3(@Param("pageNo")Integer pageNo,@Param("pageSize")Integer pageSize);

}
